{% extends '::Base.html.twig' %}

{% block body %}
    {% block navigation %}
        {% include 'BXTRLayoutBundle:Front:Navigation.html.twig' with { 'linklist': [
                { path: 'bxtr_index', name: 'Accueil' },
                { path: 'bxtr_index', name: 'Menu 1' },
                { path: 'bxtr_index', name: 'Menu 2' },
                { path: 'bxtr_index', name: 'Menu 3' },
        ] }  %}
    {% endblock %}

	{% block header %}
		{% include 'BXTRLayoutBundle:Front:Header.html.twig' %}
	{% endblock %}
    
    <div class="container">
        {% block content %}
        {% endblock %}
    </div>

	{% block footer %}
        {% set footer_linklist = [
            { path:'bxtr_index', name:'Footer Menu' },
            { path:'bxtr_index', name:'Footer Menu' },
            { path:'bxtr_index', name:'Footer Menu' },
            { path:'bxtr_index', name:'Footer Menu' }
        ] %}

        {% if is_granted('ROLE_ADMIN') %}
            {% set footer_linklist = footer_linklist|merge([{ path:'bxtr_admin_index', name:'Panneau d\'administration' }]) %}
        {% endif %}

        {% include 'BXTRLayoutBundle:Front:Footer.html.twig' with { linklist: footer_linklist } %}
	{% endblock %}
{% endblock %}

{# Meta #}
{% block meta_description %}Description de la page{% endblock %}

{% block meta %}
	{{ parent() }}
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% endblock %}

{# Resources #}
{% block stylesheets %}
	{% include 'BXTRLayoutBundle:Resources:Stylesheets.html.twig' %}
{% endblock %}

{% block javascripts %}
	{% include 'BXTRLayoutBundle:Resources:Javascripts.html.twig' %}
{% endblock %}
